<script setup lang="ts">
  /*
   * @description 父组件传递的props属性
   * */
  const {
    placeholder = '请输入',
    disabled = false,
    clearable = true,
    size = 'default',
  } = defineProps<{
    placeholder?: string;
    disabled?: boolean;
    clearable?: boolean;
    size?: 'default' | 'small' | 'large';
  }>();
</script>

<template>
  <div>
    <el-input
      :placeholder="placeholder"
      :disabled="disabled"
      :clearable="clearable"
      :size="size"
    ></el-input>
  </div>
</template>

<style scoped></style>
